﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ST.Buz.Base.Entity;

namespace ST.Buz.Base.Mapping
{
	public partial class Map_WX_Log : IEntityTypeConfiguration<WX_Log>
	{
		public void Configure(EntityTypeBuilder<WX_Log> builder)
		{
			builder.Property(e => e.Type)
				.HasDefaultValueSql("((0))")
				.ValueGeneratedNever();

			builder.Property(e => e.Url)
				.IsUnicode(false);

			builder.Property(e => e.LogDate)
				.HasDefaultValueSql("(getdate())")
				.ValueGeneratedNever();
		}
	}
}
